package com.example.boradcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

public class MyReceiver extends BroadcastReceiver {
    public MyReceiver() {
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        // TODO: This method is called when the BroadcastReceiver is receiving
        // an Intent broadcast.
        Log.d("ooo-->","网络不能用！111");
        Toast.makeText(context, "网络不能用！111", Toast.LENGTH_LONG).show();
//        throw new UnsupportedOperationException("Not yet implemented");
    }
}
